
// 简单深拷贝（只是用来拷贝接口请求参数）
const deepCopy = (target) => {
    const { toString } = Object.prototype
    let result = {}
    for (let key in target) {
        const value = target[key]
        if (toString.call(value) === '[object Object]') {
            result[key] = deepCopy(value)
        } else if (typeof value !== 'object') {
            result[key] = value
        }
    }
    return result
}

export { deepCopy }